package com.market.service.impl;
import com.market.entity.StoreCashFlow;
import com.market.mapper.StoreCashFlowMapper;
import com.market.service.StoreCashFlowService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName StoreCashFlowImpl
 * @Description TODO
 * @Author 1
 * @Date 2022/3/30 17:08
 * @Version 1.0
 */
@Service
public class StoreCashFlowImpl implements StoreCashFlowService {
    @Autowired
    StoreCashFlowMapper storeCashFlowMapper;
    //增加小店流水
    @Override
    public boolean addStoreCashFlow(StoreCashFlow storeCashFlow) {
        return storeCashFlowMapper.addStoreCashFlow(storeCashFlow)>0;
    }

    //根据小店id查询所有小店流水
    @Override
    public List<StoreCashFlow> queryAllStoreCashFlowByStoreId(int storeId) {
        return storeCashFlowMapper.queryAllStoreCashFlowByStoreId(storeId);
    }
}
